package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.ProductStatistics;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DK on 16/10/25.
 */
@Repository
public interface MerchantProductStatisticsRepository extends JpaRepository<ProductStatistics, Long>, JpaSpecificationExecutor, MerchantProductStatisticsRepositoryCustom {
    ProductStatistics findByProductId(Long id);

}
